package cn.aixuxi.notebank.service.impl;

import cn.aixuxi.notebank.dto.CategoryOutputDTO;
import cn.aixuxi.notebank.entity.CategoryEntity;
import cn.aixuxi.notebank.mapper.CategoryMapper;
import cn.aixuxi.notebank.service.CategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类描述 分类实现类
 *
 * @author ruozhuliufeng
 * @version 1.0
 * @date 2020/10/25 9:11
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, CategoryEntity> implements CategoryService {

    @Autowired
    CategoryMapper categoryMapper;

    /**
     * 功能描述: 获取所有分类列表
     *
     * @return : java.util.List<cn.aixuxi.notebank.dto.CategoryOutputDTO>
     * @author : ruozhuliufeng
     * @date : 2020/10/25 10:49
     */
    @Override
    public List<CategoryOutputDTO> findList() {
        return categoryMapper.findList();
    }

}
